package com.imoblife.brainwavestus.util;

import android.content.Context;
import android.net.ConnectivityManager;

public class NetUtil {

	public static boolean isConnectedNetwork(Context ctx) {
		ConnectivityManager cm = (ConnectivityManager) ctx
				.getSystemService(ctx.CONNECTIVITY_SERVICE);
		try {
			return cm.getActiveNetworkInfo().isConnected();
		} catch (Exception e) {
			return false;
		}
	}
	
}
